Conversation
jagged histories in pooling embeddings practice with pooling and general torch functions
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
User description
Description
PR Type
Enhancement, Tests
Description
Implement VariableSortedHistoryPooling module for jagged event embeddings
Pool variable-length user event histories using scatter operations
Add comprehensive test suite validating pooling correctness
Diagram Walkthrough
File Walkthrough
pooling.py
Variable-length history pooling module implementationLLMs/torch_examples/pooling.py
VariableSortedHistoryPoolingPyTorch module for aggregatingvariable-length event sequences
offset boundaries
test_pooling.py
Pooling module correctness and shape validation teststests/test_pooling.py
history lengths
dimension)
within tolerance